Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Revert vk hash to make snarkyjs compatible #1032

Merged
merged 7 commits into from
Jul 14, 2023

Conversation

mitschabaude
Copy link
Member

@mitschabaude mitschabaude commented Jul 14, 2023

mina: MinaProtocol/mina#13602
bindings: o1-labs/o1js-bindings#86

  • Sets the hard-coded dummy vk hash to 0 to be compatible with berkeley again
  • Fixes the recently introduced Field.isEven() (it was returning isOdd)
  • Release patch version

I manually tested the zkapps/hello_world/run_berkeley.ts script to work with these changes

@@ -416,7 +416,7 @@ class Field {
// check composition
xDiv2.mul(2).add(isOdd).assertEquals(this);

return new Bool(isOddVar);
return new Bool(isOddVar).not();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

damn :D

@mitschabaude mitschabaude merged commit aed64f2 into main Jul 14, 2023
10 checks passed
@mitschabaude mitschabaude deleted the fix/premature-vk-hash branch July 14, 2023 11:49
mrmr1993 added a commit that referenced this pull request Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants